package org.itstack.naive.chat.infrastructure.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.itstack.naive.chat.infrastructure.po.ChatRecord;

import java.util.List;

/**
 * java任我行
 *  | 沉淀、分享、成长，让自己和他人都能有所收获！
 * create by java任我行 on @2020
 */
@Mapper
public interface IChatRecordDao {

    void appendChatRecord(ChatRecord req);

    List<ChatRecord> queryUserChatRecordList(@Param("talkId") String talkId, @Param("userId")String userId);

    List<ChatRecord> queryGroupsChatRecordList(@Param("talkId")String talkId, @Param("userId")String userId);

}
